import { createApp } from 'vue'
// import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// import persist from 'pinia-plugin-persistedstate'
import pinia from './stores'
// 样式全局使用
import 'vant/lib/index.css'
import './styles/main.scss'
import 'virtual:svg-icons-register'

import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

const app = createApp(App)

NProgress.configure({
  showSpinner: false
})

// app.use(createPinia().use(persist)).use(router).mount('#app')
app.use(pinia).use(router).mount('#app')
